import React from 'react';
import { useParams, useMatch } from 'react-router-dom';
const Index = () => {
  const params = useParams();
  // console.log("course", params) // {cid: '123'}


  console.log("cousre'match", useMatch("/home/course/:cid"))

  /*  {
     "params": {
         "cid": "123"
     },
     "pathname": "/home/course/123",
     "pathnameBase": "/home/course/123",
     "pattern": {
         "path": "/home/course/:cid",
         "caseSensitive": false,
         "end": true
     }
 } */
  return (
    <div>
      <h1>Course View</h1>
    </div>
  );
}

export default Index;
